package com.lu.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lu.model.common.dtos.ResponseResult;
import com.lu.model.wemedia.dto.WmMaterialDto;
import com.lu.model.wemedia.pojo.WmMaterial;
import org.springframework.web.multipart.MultipartFile;

public interface WmFileService extends IService<WmMaterial> {

    ResponseResult uploadPicture(MultipartFile multipartFile);


    ResponseResult findList(WmMaterialDto dto);


    /**
     * 删除图片
     * @param id
     * @return
     */
    boolean deleteById(Integer id);

    /**
     * 收藏图片
     * @param id
     * @return
     */
    int collection(Integer id);

    /**
     * 取消收藏
     * @param id
     * @return
     */
    int noCollection(Integer id);
}
